Interaction Functions

startInteraction(Identifier Type > String)

Starts the interaction with the given identifier.

stopInteraction()

Stops the current interaction.

setInteractionImage(Path Type > String)

Sets the image of the open interaction window.

setInteractionText(Text Type > String)

Sets the text of the interaction.

addInteractionToQueue(Identifier Type > String, (Optional) Character Array, (Optional) Place Array, (Optional) Item Array)

#OUTDATEDUSE game.startInteraction() for now
Adds an interaction to a queue. As soon as no interaction is active the next interaction in the queue is triggered.

getInteractionRequirementText(Identifier Type > String)

Returns a string of time, budget and resource requirements.

hasInteractionValues(Identifier Type > String)

Returns true if budget and resource requirements are met.

triggerInteractionValues(Identifier Type > String, CheckHas Type > Boolean)

Passes time, subtracts budget and resources required for the given event. If CheckHas is true the values are only triggered if hasInteractionValues() is true. This function always returns the result of hasInteractionValues().